package br.com.localfloripa.util;

import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;

public class FileUtils {
	
	public static void saveFile(InputStream is,String path,String file) throws Exception {
		
		OutputStream out=new FileOutputStream(path + file);
		byte buf[]=new byte[1024];
		int len;
		while((len=is.read(buf))>0)
			out.write(buf,0,len);
		out.close();
		is.close();		
	}

}
